﻿@using BonjourQuotation.UI.Models.GuideModel
@model ManageGuidesGridViewModel
@if(Model.MenuManageGuideView)
{ 
{
    ViewBag.Title = "Manage Guides";
    Layout = "~/Views/Shared/_Layout.cshtml";
    @Scripts.Render("~/Scripts/UIScript/Manage/Guide.js")
    @Scripts.Render("~/Scripts/bootstrap-formhelpers.min.js")
    @Styles.Render("~/Content/bootstrap-formhelpers.min.css")
}
<div id="GuideDetailsDiv" style="display:none;">
    <div style="width: 99%">
        <ul class="nav nav-tabs">
            <li id="GuideCompanyInfo" class="Tab active"><a href="#tabGuideCompanyInfo" data-toggle="tab">Company Info</a></li>
            <li id="GuidePersonalInfo" class="Tab"><a href="#tabGuidePersonalInfo" data-toggle="tab">Personal Info</a></li>
            <li id="GuideAssignmentsForHidden" class="Tab"><a href="#tabGuideAssignments" data-toggle="tab">Assignments</a></li>
        </ul>
        <div class="tab-content" style="margin-top: 20px">
            <div class="tab-pane fade active in" style="height:0px" id="tabGuideCompanyInfo">
            </div>
            <div class="tab-pane fade" style="height:0px" id="tabGuidePersonalInfo">
            </div>
            <div class="tab-pane fade" style="height:0px" id="tabGuideAssignments">
            </div>
        </div>
    </div>
</div>
<div id="AddGuideDiv" style="display:none;"></div>
<div class="container">
    <div class="FormsDiv" id="FormsDiv">
        <h1>Manage Guide</h1>
        <div class="FormDiv1140">
            <div id="AutoCompleteDiv" style="text-align: left; display: none; z-index: 999999 !important;"></div>
            <div style="margin: auto; height: 98px; width: 1134px;">
                <div class="pull-right" style="margin-bottom:15px;">
                    <div class=" col-lg-4">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.GuideNameText)</span>
                            @Html.TextBoxFor(model => model.GuideNameText, new { @class = "table_inputs_SmallPadding2 inpputgr form-control QuotaTxtComplete" })
                        </div>
                    </div>
                    <div class=" col-lg-5">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.GuideLastNameText)</span>
                            @Html.TextBoxFor(model => model.GuideLastNameText, new { @class = "table_inputs_SmallPadding2 inpputgr form-control QuotaTxtComplete" })
                        </div>
                    </div>
                    <div class=" col-lg-3">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.CitySearchText)</span>
                            @Html.DropDownListFor(model => model.CitySearchText, new SelectList(Model.CitySearch, "Value", "Text"), "Select", new { @class = "table_inputs_SmallPadding2 inpputgr form-control" })
                        </div>
                    </div>
                </div>
                <div class="pull-left" style="margin-bottom:15px;">
                    <div class="col-lg-2">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.IsFindSearch)</span>
                            @Html.DropDownListFor(model => model.IsIsFindSearch, new SelectList(Model.IsFindSearch, "Value", "Text"), "Select", new { @class = "table_inputs_SmallPadding2 inpputgr form-control" })
                        </div>
                    </div>
                    <div class="col-lg-2">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.ActiveSearch)</span>
                            @Html.DropDownListFor(model => model.IsActiveSearch, new SelectList(Model.ActiveSearch, "Value", "Text"), "Select", new { @class = "table_inputs_SmallPadding2 inpputgr form-control"})
                        </div>
                    </div>
                    <div style="margin-right: 15px; padding-top: 4.5px;">
                        <button class=" btn14 btn50" style="float:right;" type="button" id="GuideSearchBtn">Search</button>
                        @if(Model.MenuManageGuideEdit)
                        { 
                            <button class="btn14 btn120" style="margin-right:30px; float:right;" type="button" onclick="ShowGuide(0)">Add New Guide</button>
                        }
                        else
                        {
                            <button class="btn14 btn120" disabled="disabled" style="margin-right:30px; float:right;" type="button" onclick="ShowGuide(0)">Add New Guide</button>
                        }
                    </div>
                </div>
            </div>
            <div class="Lines1100"></div>
            <div id="ManageGuideGrid"></div>
        </div>
    </div>
</div>
}
else
{
    <div class="container">
        <div class="FormsDiv" id="FormsDiv">
            <h1>You Have Not permission for this page</h1>
        </div>
    </div>
}






